{template 'admin','header'}

<form name='form1' action="{$self_url}?action=delall" method="POST" onsubmit="return r_submit(this);">
<table class="table_list">
 <caption>评论管理列表</caption>
 <tr>
	 <th width="80" class="align_c"><input type="checkbox" onclick="checkall(this,'ck')" id="chkall">全选/取消</th>
	 <th class="align_c">内容</th>
	 <th class="align_c" width="150">评论时间</th>
	 <th class="align_c" width="150">类别</th>
	 <th class="align_c" width="150">评论人</th>
	 <th class="align_c" width="80">状态</th>
	 <th class="align_c" width="80">管理</th>
 {loop $data $c}
 <tr>
 <td class="align_c"><input type="checkbox" id="ck" value="{$c['id']}" name="ids[]"></td>
 <td>{text2html($c['content'],100)}</td>
 <td class="align_c">{date('Y-m-d H:i:s',$c['addtime'])}</td>
 <td class="align_c">{$typelist[$c['type']]['tname']}</td>
 <td class="align_c">{php echo $member->get_truename($c['mid'])}</td>
 <td class="align_c">{if $c['status']==STATUS_NORMAL}审核通过{elseif $c['status']==2}审核未通过{else}未审核{/if}</td>
 <td class="align_c"><a href="{$self_url}?action=edit_ly&id={$c['id']}&forward={make_forward()}">修改</a></td>
 </tr>
 {/loop}
</table>
<div class="button_box">
{if check_perms('com003')===true}
<input type="button" value="批量通过" onclick="if(confirm('确定要审核选中的评论？')){change_opt('form1','{$self_url}?action=audit_ly&status=99');}" class="button_style">
<input type="button" value="批量不通过" onclick="if(confirm('确定要审核选中的评论？')){change_opt('form1','{$self_url}?action=audit_ly&status=2');}" class="button_style">
{/if}
</div>
</form>

<div id="pages">
{$pages}
</div>
{template 'admin','footer'}